import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/view/Home/index';
import hoslital from './hospital';
import doctor from './doctor';
import diary from './diary';
import circle from './circle';
import project from './project';
import product from './product';
Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    hoslital,
    doctor,
    diary,
    circle,
    project,
    product,
  ],
  scrollBehavior (to, from, savedPosition) {
    // return 期望滚动到哪个的位置
    return {x:0,y:0}
  }
})
